<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateMyPayRefundCallback extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('my_pay_refund_callback', function (Blueprint $table) {
            $table->id();
            $table->string('url', 64)->default('')->comment('回调地址');
            $table->string('param', 128)->default('')->comment('回调参数');
            $table->unsignedTinyInteger('num')->default(0)->comment('回调次数');
            $table->string('response', 128)->default('')->comment('响应内容');
            $table->unsignedInteger('createdAt')->deafult(0);
            $table->unsignedInteger('updatedAt')->deafult(0);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('my_pay_refund_callback');
    }
}
